package com.czkt.shop.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.czkt.shop.pojo.ProductBrand;
import com.czkt.shop.mapper.ProductBrandMapper;
import com.czkt.shop.service.IProductBrandService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author baomidou
 * @since 2024-09-04
 */
@Service
public class ProductBrandServiceImpl extends ServiceImpl<ProductBrandMapper, ProductBrand> implements IProductBrandService {

    @Override
    public List<ProductBrand> list(Set<Long> brandSet) {
        LambdaQueryWrapper<ProductBrand> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.in(ProductBrand::getId,brandSet);
        return baseMapper.selectList(queryWrapper);
    }
}
